package cn.tedu.cgb2104springboot01;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//让浏览器访问
@RestController//可以被浏览器访问
    @RequestMapping("a")//可以浏览器访问
public class HelloBoot {

    @RequestMapping("hi")//可以浏览器访问
    public String hi() {
        System.out.println("Hello SpringBoot```");
        return "你好！";
    }
}
